package com.woniu.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.project.core.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.project.dto.product.ProductSelectDto;
import com.woniu.project.params.product.ProductAddParam;
import com.woniu.project.params.product.ProductSelectParam;
import com.woniu.project.params.product.ProductUpdateParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-10-12
 */
public interface IProductService extends IService<Product> {

    IPage<ProductSelectDto> select(ProductSelectParam productSelectParam);

    int addProduct(ProductAddParam productAddParam);

    int updateProduct(ProductUpdateParam productUpdateParam);

    void deleteById(Integer id);

}
